<extend name="Common/base" />
<block name="content">
<div class="col-md-10">
	<div class="row">
		<div class="navbar navbar-default bootstrap-admin-navbar-thin">
			<ol class="breadcrumb bootstrap-admin-breadcrumb">
				<li>
					<a href="#">首页</a>
				</li>
				<li>
					<a href="#">抢购大厅</a>
				</li>
				<li class="active">我的抢单</li>
			</ol>
		</div>
	</div>


	<div class="row bootstrap-admin-no-edges-padding">
		
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<div class="text-muted bootstrap-admin-box-title">需求</div>
					<div class="pull-right"><span class="badge">{$count}</span></div>
				</div>
				<div class="bootstrap-admin-panel-content">
					<table class="table table-striped">
						<thead>
							<tr>
								<th>需求名称</th>
								<th>重量</th>
								<th>体积</th>
								<th>地址</th>
								<th>抢单时间</th>
								<th>价格</th>
								<th>是否托管</th>
								<th>是否签单</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
						<volist name="list" id="val">
							<tr>
								<td>{$val['name']}</td>
								<td>{$val['weight']}</td>
								<td>{$val['volume']}</td>
								<td>{$val['province_name']}{$val['city_name']}{$val['area_name']}{$val['address']}</td>
								<td>{:date('Y-m-d H:i:s',$val['create_time'])}</td>
								<td>{$val['price']}</td>
								<td><?php if($val['type'] == 1):?>已托管<?php else:?>未托管<?php endif;?></td>
								<td><?php if($val['status'] == 1):?>抢单成功<?php elseif($val['status'] == 2):?>抢单失败<?php else:?>正在跟踪<?php endif;?></td>
		
								<td><a href="{:U('Needs/detail',array('id'=>$val['need_id']))}"><button style="background-color:red;color:#fff">查看详情</button></a></td>
							</tr>
						</volist>	
						</tbody>
					</table>
 {$page}
				</div>
				
			</div>
		</div>
	</div>
	

		
</div>
</block>
<block name="script">
	<script type="text/javascript">
		$(function() {
			// Easy pie charts
			$('.easyPieChart').easyPieChart({animate: 1000});
		});
	</script>
</block>
